# NOTICE:
#
# Application name defined in TARGET has a corresponding QML filename.
# If name defined in TARGET is changed, the following needs to be done
# to match new name:
#   - corresponding QML filename must be changed
#   - desktop icon filename must be changed
#   - desktop filename must be changed
#   - icon definition filename in desktop file must be changed
#   - translation filenames have to be changed

# 应用名称
TARGET = SailBook

# 数据目录前缀
QT_SAILFISH_APP_ID = com.sailbook  # 关键配置，决定数据目录前缀

# 启用Sailfish OS特定配置
CONFIG += sailfishapp link_pkgconfig \

# 数据库
QT += sql


# 必须显式链接 Sailfish 应用库
LIBS += -lsailfishapp

# 后端C++代码路径
SOURCES += \
           src/SailBook.cpp \
           src/dao/chapterdao.cpp \
           src/dao/noveldao.cpp \
           src/database/DatabaseConnection.cpp \
           src/entity/chapterinfo.cpp \
           src/entity/novelinfo.cpp \
           src/service/novelparseworker.cpp \
           src/service/novelservice.cpp \
           src/utils/md5utils.cpp

 # QML资源文件（如图片、字体）
DISTFILES += qml/SailBook.qml \
    qml/component/UIFilePickerPage.qml \
    qml/component/UIFilePickerPage.qml \
    qml/component/UIFilePickerPageForm.ui.qml \
    qml/componet/*.qml \
    qml/config/* \
    qml/modify/* \
    img/* \
    config/* \
    qml/modify/MFValueButton.qml \
    qml/pages/ReadTimePage.qml \
    rpm/SailBook.changes.in \
    rpm/SailBook.changes.run.in \
    rpm/SailBook.spec \
    translations/*.ts \
    SailBook.desktop

SAILFISHAPP_ICONS = 86x86 108x108 128x128 172x172

# to disable building translations every time, comment out the
# following CONFIG line
CONFIG += sailfishapp_i18n

# German translation is enabled as an example. If you aren't
# planning to localize your app, remember to comment out the
# following TRANSLATIONS line. And also do not forget to
# modify the localized app name in the the .desktop file.
TRANSLATIONS += translations/SailBook-de.ts

HEADERS += \
        src/dao/chapterdao.h \
        src/dao/noveldao.h \
        src/database/DatabaseConnection.h \
        src/entity/chapterinfo.h \
        src/entity/novelinfo.h \
        src/service/novelparseworker.h \
        src/service/novelservice.h \
        src/utils/md5utils.h
